#ifndef UART_SERIAL_H
#define UART_SERIAL_H

#include <QAbstractItemModel>
#include <QDebug>
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>


class uart_serial : public QObject
{
    Q_OBJECT

public:
    explicit uart_serial(QObject *parent = nullptr);

    QSerialPort *serial;

    void uart_Init();

    QString COM_UART;

    int Write_Data(QString);

//    void Close_uart();

public slots:
    void Read_Data();

};

#endif // UART_SERIAL_H
